package com.woowc.cn.web;

import com.woowc.cn.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version V1.0.0
 * @ClassName: {@link MeanController}
 * @Description: MeanController
 * @author: Lanzhou
 * @date: 2020/11/24 9:29
 * @Copyright:2020 All rights reserved.
 */
@Api(tags = "假装是个借口")
@RestController
@RequestMapping("/mean/")
public class MeanController {

    @ApiOperation(value = "假装是个借口 how", notes = "are you?")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page", value = "当前第几页", dataType = "Integer", dataTypeClass = Integer.class),
            @ApiImplicitParam(name = "size", value = "每页多少条", dataType = "Integer", dataTypeClass = Integer.class),
            @ApiImplicitParam(name = "co", value = "假装的参数", dataType = "String", dataTypeClass = String.class)
    })
    @GetMapping("/co")
    public Result<String> co(Integer page, Integer size, String co) {
        System.out.println(page);
        System.out.println(size);
        return Result.success(co + " is me lo");
    }


}
